CC=gcc
CFLAGS=-Os -c -I. -I/usr/include -I /usr/X11R6/include
LD=gcc
LDFLAGS=-L/usr/lib -L/usr/X11R6/lib -lX11 -lc -lobjc
BIN=sunkbdd
SRC=sunkbdd.m keyboard.m systlog.m
OBJ=$(SRC:.m=.o)

all: $(SRC)
	@echo "CC "$(SRC)
	@$(CC) $(CFLAGS) $(SRC)
	@echo "LD "$(OBJ)
	@$(LD) -o $(BIN) $(OBJ) $(LDFLAGS)

clean:
	@echo "RM "$(BIN)
	@rm -f $(BIN)
	@echo "RM "$(OBJ)
	@rm -f $(OBJ)

.PHONY: clean
